package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.GroupPurchaseRedemption;
import org.apache.ibatis.annotations.Param;

/**
 * 团购兑换设置 Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-14
 */
public interface GroupPurchaseRedemptionMapper
{
    /**
     * 通过id查询团购兑换设置
     *
     * @param id 团购兑换设置主键
     * @return 团购兑换设置
     */
    public GroupPurchaseRedemption selectGroupPurchaseRedemptionById(Long id);

    /**
     * 通过门店名称查询团购兑换设置列表
     *
     * @param storeName 门店名称
     * @return 团购兑换设置集合
     */
    public List<GroupPurchaseRedemption> selectGroupPurchaseRedemptionListByName(@Param("storeName") String storeName);

    /**
     * 新增团购兑换设置
     *
     * @param groupPurchaseRedemption 团购兑换设置
     * @return 结果
     */
    public int insertGroupPurchaseRedemption(GroupPurchaseRedemption groupPurchaseRedemption);

    /**
     * 修改团购兑换设置
     *
     * @param groupPurchaseRedemption 团购兑换设置
     * @return 结果
     */
    public int updateGroupPurchaseRedemption(GroupPurchaseRedemption groupPurchaseRedemption);

    /**
     * 通过id删除团购兑换设置信息
     *
     * @param id 团购兑换设置主键
     * @return 结果
     */
    public int deleteGroupPurchaseRedemptionById(Long id);

    /**
     * 通过id批量删除团购兑换设置信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGroupPurchaseRedemptionByIds(Long[] ids);
}
